<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Good extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;
    protected $name = "goods";

    protected function shopcart(){
        return $this->hasOne(ShopCart::class,'goods','id');
    }
}
